// 从fs中解构出来rename直接使用
const { rename } = require("node:fs")
const path = require("node:path")

rename(path.join(__dirname,"test","hello.txt"),
path.join(__dirname,"test","anotherName.txt"),
(err) => {
    if (err) throw err
    console.log("rename success")
})